package com.atshiyou.bean;

import java.util.List;

//一方 ： 一对多
public class Grade {
    private int gradeId;
    private String gName;
    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public Grade() {
    }

    public Grade(int gradeId, String gName) {
        this.gradeId = gradeId;
        this.gName = gName;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeId=" + gradeId +
                ", gName='" + gName + '\'' +
                '}';
    }

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }
}
